package com.itheima.activities.mapper;

import com.itheima.entity.pojo.RedPacket;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Set;

/**
 * @author :wujunjie
 * createTime :2022-12-19 15:52
 * description :
 */
@Mapper
public interface RedPacketMapper {
    Boolean insertRedPacket(@Param("redPacket") RedPacket redPacket);

    List<RedPacket> selectRedPacketByStatusAndTime(@Param("status") int status, @Param("time") LocalDateTime time);

    List<RedPacket> selectAll();


    Boolean updateByIds(@Param("ids") Set<String> ids, @Param("status") Integer status);

    RedPacket selectRedPacketById(@Param("redPacketId") String redPacketId);
}
